package com.hongdee.crm.carConfig.dao;

import com.hongdee.base.basedao.IBaseDao;
import com.hongdee.crm.carConfig.entity.TCrmCarWarranty;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2017/3/30.
 */
public interface ITCrmCarWarrantyDao extends IBaseDao {

    public TCrmCarWarranty findCarZbInfo(String code) throws Exception;

    public List<TCrmCarWarranty> findParamByPCodeList(String pCode) throws Exception;

    public List<Map<String, Object>> childList(String sql,String key) throws Exception;

    /**
     * 检测当前级别下是否有重复的编码
     * @param pCode
     * @param code
     * @param id 排除指定的ID
     * @return
     * @throws Exception
     */
    public boolean checkChild(String pCode,String code,String id) throws Exception;


}
